package com.xiong.client;

import com.xiong.poje.Xs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
//开启服务调用，用feign代理之前的resttemplate
@FeignClient(value = "service")
@Component
public interface Xsclient {

    @GetMapping("/test1/{id}")
    List<Xs> getall();

}
